package com.hc.wdj.core.context;

import com.hc.wdj.core.context.model.HcRequest;
import com.hc.wdj.core.context.model.HcResponse;
import com.hc.wdj.core.error.CoreError;
import com.hc.wdj.core.exception.HcException;

/**
 * 如果代码走到了此处，说明引入的依赖有问题，或者错误的调用了api
 * @author ryanwdj
 * @since 2024/11/17
 */
public class HcContextDefaultImpl implements HcContext{

    /**
     * 默认的上下文处理器对象
     */
    public static HcContextDefaultImpl defaultContext = new HcContextDefaultImpl();

    @Override
    public HcRequest getRequest() {
        throw new HcException(CoreError.CANNOT_FETCH_VALID_CONTEXT);
    }

    @Override
    public HcResponse getResponse() {
        throw new HcException(CoreError.CANNOT_FETCH_VALID_CONTEXT);
    }
}
